package com.example.pattern.memento;

/**
 * 备忘录类，存储原始对象的状态
 *
 * @author FM_南风
 * @date 2024/7/7
 */
public class Memento {
	 private String state;

	 public Memento(String stateToSave) {
 	 	state = stateToSave;
	 }

 	public String getSavedState() {
  		return state;
 	}
}